Welcome to the AppGEN Help Menu


Overview of the AppGEN Development System
AppGEN Language Reference
Index















The AppGEN Encyclopedia

Overview of the AppGEN Development System













The AppGEN Encyclopedia

AppGEN Language Reference



The AppGEN 4GL exists as a heirarchy of functions :-

[GLOBAL]
[MENU][MODULE]
[FORM][PROCESS][OUTPUT]

This heirarchy represents a complete application, which consists of one GLOBAL section, multiple MENU's, and multiple MODULE's each consisting of multiple FORM's, PROCESS's and OUTPUT's. At compile time MENU sections are translated into .html documents and MODULE sections are compiled into executable CGI scripts. The GLOBAL section is used to tell the compiler about the specific setup of the target host machine.










The AppGEN Encyclopedia

GLOBAL section



Purpose
To initiate the global section.

Usage: [GLOBAL]

What it does
It starts a global section within the application file which informs the compiler of important compile time parameters. There should be only one global section within each application file.

Where it can be used
Ideally it should be placed at the top of the application file but it is also a good idea to
include it from a separate file, this improves the portability of application files.

Example
[GLOBAL]
SET pgdir AS "/usr/local/postgres95"
SET pghost AS "localhost"
SET pgdatabase AS "root"
SET httpd-dir AS "/usr/local/httpd"
SET cgi-url AS "http://localhost/apps"
SET doc-url AS "http://localhost/docs"
SET src-dir AS "/tmp"

See also
SET Parameters [MODULE] [MENU]


The AppGEN Encyclopedia

MENU section



Purpose
To create a menu within the application.

Usage: [MENU menu_name]

What it does
It starts a menu section within the application. This will create a separate html document at compile time.

Where it can be used
Anywhere within the application file but its use will terminate the previous section. MENU sections cannot be nested within MENU's or MODULE's.

Example
[MENU main]
SET title AS "The Main Menu"
DEFINE MENU {
"Data Entry Form" : MODULE "main_form"
"Reports Menu" : MENU "reports"
}

See also
SET Parameters DEFINE MENU [MODULE] [GLOBAL]


The AppGEN Encyclopedia

MODULE section



Purpose
To create a module within the application.

Usage: [MODULE module_name]

What it does
It starts a module section within the application. This will create a separate CGI script file in C at compile time. Modules consist of component FORM's, PROCESS's and OUTPUT's.

Where it can be used
Anywhere within the application file but its use will terminate the previous section. For this reason MODULE sections cannot be nested within other MENU or MODULE sections.

Example
[MODULE main]
SET default_process AS "entry"
STRING global_variable
[FORM form_1]
.....
.....
[PROCESS entry]
.....
.....
[OUTPUT report_1]
.....
.....

See also
SET Parameters Variables [FORM] [PROCESS] [OUPUT] [MENU] [GLOBAL]


The AppGEN Encyclopedia

Index













The AppGEN Encyclopedia